package com.example.observer;

/**
 * @version 1.0.0
 * @className: XiaoWang
 * @description:
 * @author: rosszhang
 * @date: 2022/5/13 9:36
 */
public class XiaoWang implements Person {
    private String name = "小王";

    public XiaoWang() {
    }

    @Override
    public void getMessage(String msg) {
        System.out.println(name + "接到小美的电话，内容是：" + msg);
    }
}
